<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('驳回原因')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-user-resetPwd">
			<input name="ids" id="ids" type="hidden" th:value="${ids}" />
			<div class="form-group">
				<div class="col-sm-12">
					<input type="text" id="auditFailedReason" placeholder="请输入驳回原因" class="form-control" maxlength="50" rows="5" name="auditFailedReason">
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include :: footer" />
	<script type="text/javascript">

		function submitHandler() {
		    var data;
            var url;
            if ($("#ids").val().indexOf(",") == -1){
                data = { "id":  $("#ids").val(), "auditState": -1, "auditFailedReason": $("#auditFailedReason").val()};
                url = ctx + "media/media/audit";
            }else {
                data = { "ids":  $("#ids").val(), "auditState": -1, "auditFailedReason": $("#auditFailedReason").val()};
                url = ctx + "media/media/auditAll";
            }
            $.operate.save(url, data);
	    }
	</script>
</body>

</html>
